package com.lfz.quality_effect.controller;


import com.lfz.quality_effect.model.dto.TotalScoreDTO;
import com.lfz.quality_effect.service.TTotalScoreService;
import com.lfz.quality_effect.utils.ResultData;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 质效指标总分 前端控制器
 * </p>
 *
 * @author Destiny
 * @since 2023-03-21
 */
@RestController
@RequestMapping("/api/tTotalScore")
public class TTotalScoreController {
    @Autowired
    private TTotalScoreService tTotalScoreService;
    @ApiOperation("指标总分")
    @PostMapping("/uploadIndexTotalScore")
    public ResultData uploadIndexTotalScore(@RequestBody TotalScoreDTO totalScoreDTO){
        tTotalScoreService.uploadIndexTotalScore(totalScoreDTO);
        return ResultData.ok();
    }
}

